#ifndef REMOTEDIALOG_H
#define REMOTEDIALOG_H

#include <QDialog>
#include <QRadioButton>
#include <QLineEdit>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include <QFormLayout>

class RemoteDialog : public QDialog
{
    Q_OBJECT

public:
    explicit RemoteDialog(QWidget *parent = nullptr);

    QString getHost() const;
    QString getPort() const;
    QString getRemoteDbName() const;
    QString getUsername() const;
    QString getPassword() const;

private:
    QRadioButton *remoteConnectionRadioButton;
    QLineEdit *hostEdit;
    QLineEdit *portEdit;
    QLineEdit *remoteDbNameEdit;
    QLineEdit *usernameEdit;
    QLineEdit *passwordEdit;
    QLabel *remoteLabel1;
    QLabel *remoteLabel2;
    QLabel *remoteLabel3;
    QLabel *remoteLabel4;
    QLabel *remoteLabel5;
    QPushButton *connectButton;
    QPushButton *cancelButton;

private slots:
    void onFieldsChanged();
};

#endif // REMOTEDIALOG_H
